package com.example.midushop.service.product.impl;

import com.example.midushop.entity.product.attr.AttrValue;
import com.example.midushop.mapper.product.attr.AttrValueMapper;
import com.example.midushop.service.product.AttrValueService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * SKU商品属性参数服务接口实现类
 */
@Service
public class AttrValueServiceImpl implements AttrValueService {
    @Autowired
    AttrValueMapper attrValueMapper;

    @Override
    public int addAttrValue(long pro_sku_attr_id, long pro_spu_attr_id) {
        return attrValueMapper.addAttrValue(pro_sku_attr_id,pro_spu_attr_id);
    }

    @Override
    public List<AttrValue> getAttrValue(long pro_sku_attr_id, long pro_spu_attr_id) {
        return attrValueMapper.getAttrValue(pro_sku_attr_id,pro_spu_attr_id);
    }
}
